package com.nlgc365.designpattern.Chapter04_Pattern.Behavior.P02_Template.Callback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class UseCallBack {
    private static final Logger logger = LoggerFactory.getLogger(UseCallBack.class);

    public static void main(String[] args) {
        CallBackSomeCase someCase = new CallBackSomeCase();
        someCase.templateMethod1(new SomeMethod() {
            @Override
            public void execute() {
                logger.info("method1");
            }
        }, new SomeMethod() {
            @Override
            public void execute() {
                logger.info("method2");
            }
        });

    }
}
